﻿.mud-checkbox {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;

    &.mud-disabled, .mud-disabled:hover, .mud-disabled:focus-visible {
        cursor: default;
        background-color: transparent !important;

        & * {
            cursor: default;
            color: var(--mud-palette-text-disabled);
        }
    }

    &.mud-readonly, .mud-readonly:hover {
        cursor: default;
    }

    & .mud-checkbox-dense {
        padding: 4px;
    }
}

.mud-checkbox-input {
    top: 0;
    left: 0;
    width: 100%;
    cursor: inherit;
    height: 100%;
    margin: 0;
    opacity: 0;
    padding: 0;
    z-index: 1;
    position: absolute;
}

.mud-checkbox-span {
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

.mud-chart-legend-checkbox .mud-checkbox svg path:last-child {
    fill: var(--checkbox-color) !important;
}